/********************************************************************
	Copyright (c) 2010-2020 by TnmuJoy
	@created:	16-10-2011   20:57
	@filename: 	Prototype.hxx
	@author:	limiko lau(limiko.lau@gmail.com)
	@desc:		
*********************************************************************/
#ifndef TNMUJOY_GDUT_DESIGNPATTERN__PROTOTYPE_H_
#define TNMUJOY_GDUT_DESIGNPATTERN__PROTOTYPE_H_

namespace tnmujoy
{
namespace gdut
{

template<class T>
class Prototype
{
public:
    T* clone()
    {
        return new T(*static_cast<T*>(this));
    }
protected:
    Prototype(){}
    virtual ~Prototype(){}
private:
    
};

    }//namespace gdut
}//namespace tnmujoy

#endif //TNMUJOY_GDUT_DESIGNPATTERN__PROTOTYPE_H_